package com.example.medical_delivery_system.api.admin.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * Param：20201003013
 * Author：李镇荣
 * Data：2022/12/21
 */
@Data
public class OrderAddParam {

    @ApiModelProperty("订单id")
    @NotNull(message = "订单id不能为空")
    @Min(value = 1, message = "订单id最低为1")
    private Long orderId;

    @ApiModelProperty("用户id")
    @NotNull(message = "用户id不能为空")
    @Min(value = 1, message = "用户id最低为1")
    private Long userId;

    @ApiModelProperty("派送员id")
    private Long deliveryId;

    @ApiModelProperty("地址")
    @NotEmpty(message = "地址不能为空")
    private String address;

    @ApiModelProperty("商品总价格")
    @NotNull(message = "商品总价格不能为空")
    @Min(value = 1, message = "商品总价格最低为1")
    private Long totalPrice;

    @ApiModelProperty("时间")
    @NotEmpty(message = "时间不能为空")
    private String time;

    @ApiModelProperty("订单状态")
    @NotEmpty(message = "订单状态不能为空")
    private String status;
}
